home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Information / Digests / CSMP Digest / volume 1 / csmp-v1-119.txt < prev    next >
Encoding:
Text File  |  1994-12-08  |  34.9 KB  |  977 lines  |  [TEXT/R*ch]

  1. C.S.M.P. Digest             Sat, 20 Jun 92       Volume 1 : Issue 119
  2.  
  3. Today's Topics:
  4.  
  5.     'aete' Rez and/or ResEdite Template
  6.     Info on designing ADB devices?
  7.     Converting from C++ to Objective C
  8.     Reading Sectors from SuperDrive 800K disk, not 720K
  9.     Information on Bento?
  10.     Converting from C++ to Think C
  11.     Problems Updating MENU Resource
  12.     Stereo sound on the Mac?
  13.  
  14.  
  15. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  16.  
  17. These digests are available (by using FTP, account anonymous, your email
  18. address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
  19. edu.  This is also the home of the comp.sys.mac.programmer Frequently Asked
  20. Questions list.  The last several issues of the digest are available from
  21. sumex-aim.stanford.edu as well.
  22.  
  23. These digests are also available via email.  Just send a note saying that you
  24. want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
  25. automatically receive each new digest as it is created.
  26.  
  27. The digest is a collection of articles from the internet newsgroup comp.sys.
  28. mac.programmer.  It is designed for people who read c.s.m.p. semi-regularly
  29. and want an archive of the discussions.  If you don't know what a newsgroup
  30. is, you probably don't have access to it.  Ask your systems administrator(s)
  31. for details.  (This means you can't post questions to the digest.)
  32.  
  33. The articles in these digests are taken directly from comp.sys.mac.programmer.
  34. They are not edited; all articles included in this digest are in their original
  35. posted form.  The only articles that are -not- included in these digests are
  36. those which didn't receive any replies (except those that give information
  37. rather than ask a question).  All replies to each article are concatenated
  38. onto the original article in the order in which they were received.  Article
  39. threads are not added to the digests until the last article added to the
  40. thread is at least one month old (this is to ensure that the thread is dead
  41. before adding it to the digests).
  42.  
  43. Send administrative mail to mkelly@cs.uoregon.edu.
  44.  
  45. -------------------------------------------------------
  46.  
  47. From: mspace@netcom.com (Brian Hall)
  48. Subject: 'aete' Rez and/or ResEdite Template
  49. Date: Wed, 29 Apr 92 00:01:03 GMT
  50. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  51.  
  52. Is there such a thing as a Rez or ResEdit template for 'aete' resources?
  53. I have looked on the latest developer CD as well as the MPW C Bundle CD
  54. and could not find one.
  55.  
  56. - -- 
  57.  
  58.  \ | /   | Brian Hall                 mspace@netcom.com
  59.  - : -   | Mark/Space Softworks       Applelink: markspace
  60.   /|\    |                            America Online: MarkSpace
  61.  |-+-|   |
  62. /-\|/-\  | People don't kill people, toasters kill people.
  63.  
  64. +++++++++++++++++++++++++++
  65.  
  66. From: cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton)
  67. Date: 29 Apr 1992 15:09:50 GMT
  68. Organization: U. of Texas Health Science Center at Houston
  69.  
  70. In article <=f_kjb.mspace@netcom.com>, mspace@netcom.com (Brian Hall) writes:
  71. > Is there such a thing as a Rez or ResEdit template for 'aete' resources?
  72. > I have looked on the latest developer CD as well as the MPW C Bundle CD
  73. > and could not find one.
  74.  
  75. The newest ResEdit supplies templates for aete, etc. resources.
  76.  
  77. In a similar vein, can anyone tell me why almost NO AppleEvent aware applications
  78. implement these resources? The ONLY application I have ever seen that does is
  79. CEIAC. Do developers just not know about them? Are they too hard to use? (I don't
  80. think so, since even *I* can put them in application I write.) Are they OBE?
  81.  
  82. Chuck Shotton
  83.  
  84. +++++++++++++++++++++++++++
  85.  
  86. From: leonardr@ccs.itd.umich.edu
  87. Date: 29 Apr 92 16:36:23 GMT
  88. Organization: Campus Computing Sites, University of Michigan-Ann Arbor
  89.  
  90. In article <6473@lib.tmc.edu> cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
  91. >In article <=f_kjb.mspace@netcom.com>, mspace@netcom.com (Brian Hall) writes:
  92. >> 
  93. >In a similar vein, can anyone tell me why almost NO AppleEvent aware 
  94. >applications implement these resources? The ONLY application I have ever 
  95. >seen that does is CEIAC. 
  96. >
  97.     Some major applications (and certainly not all) that inlcude 'aete'
  98. resources - Canvas 3.0, MicroPhone II 4.0, StuffIt Deluxe 3.0, and Excel 4.0.
  99. I can also guarantee that you will see more than more applications including
  100. them in the near future (ie. after the WWDC).  
  101.  
  102. >Do developers just not know about them? 
  103. >
  104.     I would say that this, and the fact that since most applications
  105. aren't doing much more than the required events, they don't really need one 
  106. (YET!)
  107.  
  108. >Are they too hard to use? (I don't think so...)
  109. >
  110.     I don't think so either, and I've been putting them in my products
  111. for a while now.
  112.  
  113. Leonard Rosenthol
  114. - -- 
  115. - -----------------------------------------------------------------------
  116. Leonard Rosenthol          Internet: leonardr@ccs.itd.umich.edu
  117. Director of Advanced Technology   AppleLink: MACgician
  118. Aladdin Systems, inc.          GEnie:     MACgician
  119.  
  120. +++++++++++++++++++++++++++
  121.  
  122. From: mspace@netcom.com (Brian Hall)
  123. Date: Wed, 29 Apr 92 17:46:31 GMT
  124. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  125.  
  126. cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
  127.  
  128. >In article <=f_kjb.mspace@netcom.com>, mspace@netcom.com (Brian Hall) writes:
  129. >> 
  130. >> Is there such a thing as a Rez or ResEdit template for 'aete' resources?
  131. >> I have looked on the latest developer CD as well as the MPW C Bundle CD
  132. >> and could not find one.
  133. >> 
  134.  
  135. >The newest ResEdit supplies templates for aete, etc. resources.
  136.  
  137. The April CD has ResEdit 2.1.1, which does *not* know about aete resources!
  138.  
  139. - -- 
  140.  
  141.  \ | /   | Brian Hall                 mspace@netcom.com
  142.  - : -   | Mark/Space Softworks       Applelink: markspace
  143.   /|\    |                            America Online: MarkSpace
  144.  |-+-|   |
  145. /-\|/-\  | People don't kill people, toasters kill people.
  146.  
  147. +++++++++++++++++++++++++++
  148.  
  149. From: lai@Apple.COM (Ed Lai)
  150. Date: 29 Apr 92 18:46:08 GMT
  151. Organization: Apple Computer Inc., Cupertino, CA
  152.  
  153. In article <a!+km4m.mspace@netcom.com> mspace@netcom.com (Brian Hall) writes:
  154. >cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
  155. >
  156. >>In article <=f_kjb.mspace@netcom.com>, mspace@netcom.com (Brian Hall) writes:
  157. >>> 
  158. >>> Is there such a thing as a Rez or ResEdit template for 'aete' resources?
  159. >>> I have looked on the latest developer CD as well as the MPW C Bundle CD
  160. >>> and could not find one.
  161. >>> 
  162. >
  163. >>The newest ResEdit supplies templates for aete, etc. resources.
  164. >
  165. >The April CD has ResEdit 2.1.1, which does *not* know about aete resources!
  166. >
  167. >-- 
  168. >
  169. > \ | /   | Brian Hall                 mspace@netcom.com
  170. > - : -   | Mark/Space Softworks       Applelink: markspace
  171. >  /|\    |                            America Online: MarkSpace
  172. > |-+-|   |
  173. >/-\|/-\  | People don't kill people, toasters kill people.
  174.  
  175. I don't know if the template is in the April CD or not, anyway I am putting
  176. a copy in ftp.apple.com. It will be in the directory /pub/appleevents.
  177.  
  178. However, anything other than the smallest 'aete' is too small to be edited
  179. as a ResEdit template, or at least too painful to do so.
  180.  
  181. There is a HyperCard stack that let you edit the aete resource. It has been
  182. submitted to the developer CD, I guess it would be the May issue. I have
  183. also put it in ftp.apple.com in the same directory. And to justify why
  184. developer should put aete resource in their application, I also put up a
  185. sample application with aete resource on ftp, as well as a HyperCard Apple
  186. Event XCMD stack. The XCMD stack will contains a number of XCMDs that let
  187. you talk to an Apple Event aware application, the stack will also take
  188. advantage of the aete resource in the application to make the conversation
  189. as painless as possible.
  190.  
  191. /* Disclaimer: All statments and opinions expressed are my own */
  192. /* Edmund K. Lai                                               */
  193. /* Apple Computer, MS37-UP                                     */
  194. /* 20525 Mariani Ave,                                          */
  195. /* Cupertino, CA 95014                                         */
  196. /* (408)974-6272                                               */
  197. zW@h9cOi
  198.  
  199. +++++++++++++++++++++++++++
  200.  
  201. From: Daryl_Spitzer@mindlink.bc.ca (Daryl Spitzer)
  202. Date: 29 Apr 92 21:22:37 GMT
  203. Organization: MIND LINK! - British Columbia, Canada
  204.  
  205. Where can I get documentation on 'aete' resources?  I can't find any reference
  206. to them in Inside Macintosh Volume VI.
  207. - --
  208. - -------------------------------------------------------------------
  209.  Daryl_Spitzer@mindlink.bc.ca     "Life isn't just, life just is."
  210.          a2251@mindlink.bc.ca              -- Me  (I think.)
  211.        Spitzer@UNCAMULT.BITNET
  212. - -------------------------------------------------------------------
  213.  
  214. +++++++++++++++++++++++++++
  215.  
  216. From: lai@Apple.COM (Ed Lai)
  217. Date: 29 Apr 92 21:36:28 GMT
  218. Organization: Apple Computer Inc., Cupertino, CA
  219.  
  220. Some more on aete resource.
  221.  
  222. Aete resource just tells you what kind of Apple Event support an application has.
  223. It is mainly for information. So if an application is Apple Event aware but does
  224. not have an aete resource, but you know what events it supports, you can always
  225. make up an aete resource yourself and ResEdit it into the application. All of
  226. a sudden, scripting language that understands aete resource will know how to
  227. talk to that application through Apple Events.
  228.  
  229. For those who have access to ToolServer which is available on the ETO CD, here
  230. is another Apple Event aware application that does not have an aete resource.
  231. So you may want to stick in an aete resource of your own. But there is one
  232. catch, ToolServer only supports a limited number of Apple Events, but effectively
  233. it supports a lot of Apple Events because of the DoScript command. I have a
  234. little hack so that every MPW command that ToolServer has access to becomes an
  235. Apple Event server as long as the description of that MPW command is the aete
  236. resource and the aete resource is written with certain convention. I am also
  237. putting it up on ftp.apple.com. However you must get hold of ToolServer
  238. separately. It can be a lot of fun using the HyperCard XCMD stack and talk to
  239. the ToolServer using Apple Events.
  240.  
  241. I forget to mention that another Apple Event server with aete resource is the
  242. Clipboard Magician 0.71. It is available on developer CD, it is also on
  243. ftp.apple.com but in the directory /pub/lai.
  244.  
  245. /* Disclaimer: All statments and opinions expressed are my own */
  246. /* Edmund K. Lai                                               */
  247. /* Apple Computer, MS37-UP                                     */
  248. /* 20525 Mariani Ave,                                          */
  249. /* Cupertino, CA 95014                                         */
  250. /* (408)974-6272                                               */
  251. zW@h9cOi
  252.  
  253. +++++++++++++++++++++++++++
  254.  
  255. From: jpugh@apple.com (Jon Pugh)
  256. Date: 16 May 92 18:09:43 GMT
  257. Organization: Apple Computer, Inc.
  258.  
  259. In article <11733@mindlink.bc.ca>, Daryl_Spitzer@mindlink.bc.ca (Daryl Spitzer) writes:
  260. > Where can I get documentation on 'aete' resources?  I can't find any reference
  261. > to them in Inside Macintosh Volume VI.
  262.  
  263. The best place for this info is the New Inside Macintosh InterApplication
  264. Communication chapter which is available on the May Developer CD (The Byte
  265. Stuff).  This will eventually be published so that you can read the whole
  266. Inside Macintosh all over again.  After all, how many times have you read
  267. The Lord of the Rings?  ;)
  268.  
  269. Jon
  270.  
  271. ---------------------------
  272.  
  273. From: speth@cats.ucsc.edu (James Gustave)
  274. Subject: Info on designing ADB devices?
  275. Date: 1 May 92 01:47:22 GMT
  276. Organization: University of California, Santa Cruz
  277.  
  278.  
  279. Where can I get detailed information about designing devices for the ADB?
  280. Thanks.
  281.  
  282. - -- 
  283. Jim Speth
  284. speth@cats.ucsc.edu
  285.  
  286. +++++++++++++++++++++++++++
  287.  
  288. From: absurd@applelink.apple.com (Tim Dierks, software saboteur)
  289. Date: 19 May 92 01:43:31 GMT
  290. Organization: MacDTS Misfits
  291.  
  292. In article <34283@darkstar.ucsc.edu>, speth@cats.ucsc.edu (James Gustave) writes:
  293. > Where can I get detailed information about designing devices for the ADB?
  294. > Thanks.
  295.  
  296. Drop a note to SW.LICENSE@applelink.apple.com.  For a very modest licensing fee,
  297. you will become an ADB licensee!  This package includes a wide variety of wonderful
  298. goodies, including specs for the ADB, design documents on all of Apple's ADB
  299. peripherals, and the right to force me to register an ADB ID for you, whether
  300. I want to or not!  This, and much, much, more, can be yours!  Operators are
  301. standing by!
  302.  
  303. Tim Dierks
  304. "That guy with the ADB database."
  305.  
  306. ---------------------------
  307.  
  308. From: nagle@netcom.com (John Nagle)
  309. Subject: Converting from C++ to Objective C
  310. Date: Wed, 06 May 92 23:18:05 GMT
  311. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  312.  
  313.      I'm considering converting some programs from MPW C++ to Objective C,
  314. primarily to use the better libraries that Think C offers.  Are there
  315. any tools that will assist with a conversion from MPW C++ to Objective-C?
  316. I don't have any multiple inheritance, template, exception, MacApp, or
  317. pointer-to-function-member problems to deal with, so Objective-C has
  318. enough power to deal with the problem.  But some mechanical tools for
  319. dealing with the translation would help.  
  320.  
  321.      (Yes, I know all too well about Symnantec's acquistion of the Zortech
  322. line, but I've had it with Zortech C++)
  323.  
  324.                     John Nagle
  325.  
  326. For sale, cheap: Zortech C++ for the Mac, latest version 2.1.3.  Doesn't
  327. support current MPW, floating point coprocessors, templates,...
  328. Will trade for current Think C.
  329.  
  330. +++++++++++++++++++++++++++
  331.  
  332. From: e-sink@uiuc.edu (Eric W. Sink)
  333. Organization: University of Illinois at Urbana-Champaign
  334. Date: Thu, 7 May 1992 15:42:14 GMT
  335.  
  336. In <acfkk0h.nagle@netcom.com> nagle@netcom.com (John Nagle) writes:
  337.  
  338. >     I'm considering converting some programs from MPW C++ to Objective C,
  339. >primarily to use the better libraries that Think C offers.  Are there
  340. >any tools that will assist with a conversion from MPW C++ to Objective-C?
  341. >I don't have any multiple inheritance, template, exception, MacApp, or
  342. >pointer-to-function-member problems to deal with, so Objective-C has
  343. >enough power to deal with the problem.  But some mechanical tools for
  344. >dealing with the translation would help.  
  345.  
  346. Um, er, well...
  347.  
  348. THINK C is not Objective-C.  It is a C++ subset.  I know of no
  349. tools to automate the process of converting C++ to THINK C.
  350.  
  351. I also know of no tools to automate the process of converting C++
  352. to ObjC.
  353.  
  354. - -- 
  355. Eric W. Sink, USACERL         | The essence of GUI programming : "What
  356. Box 9005, Champaign, IL       | started out as a half hour hack has been
  357. 61826-9005 1-800-USA-CERLx449 | bothering me for two weeks now." -- Matt Mora
  358. - ---- e-sink@uiuc.edu ---------|
  359.  
  360. +++++++++++++++++++++++++++
  361.  
  362. From: eric_berdahl@taligent.com (Eric Berdahl)
  363. Date: 7 May 92 18:23:36 GMT
  364. Organization: Taligent, Inc.
  365.  
  366. In article <acfkk0h.nagle@netcom.com>, nagle@netcom.com (John Nagle) writes:
  367. >      I'm considering converting some programs from MPW C++ to Objective C,
  368. > primarily to use the better libraries that Think C offers.  Are there
  369. > [remainder deleted]
  370.  
  371. John,
  372.  
  373. You do realize that Think C is NOT Objective C, don't you?  True, it is not C++,
  374. and it is more than ANSI C, but it is not Objective C.  Instead, Think provides
  375. object-oriented extensions to C that look a little like C++.  Objective C is a
  376. language (designed by a company named Stepstone) that borrows from C and
  377. Smalltalk.  Its syntax and traditions are very different from C++, and the
  378. object C Symantec sells in Think C.
  379.  
  380. Of course, now that Stepstone sells an Objective C compiler for the Mac, we have
  381. even more choices to make (C++, Objective C, Think Object C, Smalltalk, Lisp,
  382. Dylan [someday],I) for our preferred mode of expression.  Oh, well.  They say
  383. that's what makes life interesting.
  384.  
  385. Regards,
  386. Eric
  387. - --
  388. Eric Berdahl                                 MADA President
  389. Internet: eric_berdahl@taligent.com          AppleLink: BERDAHL
  390. #include <StdDisclaimer.h>
  391. This is a freeware signature.  What do you expect for nothing?
  392.  
  393.  
  394. +++++++++++++++++++++++++++
  395.  
  396. From: drc@claris.com (Dennis Cohen)
  397. Date: 7 May 92 14:41:29 GMT
  398. Organization: Claris Corporation, Santa Clara CA
  399.  
  400. nagle@netcom.com (John Nagle) writes:
  401.  
  402. >     I'm considering converting some programs from MPW C++ to Objective C,
  403. >primarily to use the better libraries that Think C offers.  Are there
  404.  
  405. THINK C does not use Objective C, they use Object C -- the Object Pascal
  406. equivalent in C.  It is (almost) a C++ subset.  Objective C is the language
  407. developed by Brad Cox and StepStone which is essentially C with embedded
  408. SmallTalk for OO work.  StepStone has an Objective C preprocessor to the
  409. MPW C compiler for $99.  It comes with their Software ICPak (component
  410. library).
  411.  
  412. >any tools that will assist with a conversion from MPW C++ to Objective-C?
  413. >I don't have any multiple inheritance, template, exception, MacApp, or
  414. >pointer-to-function-member problems to deal with, so Objective-C has
  415. >enough power to deal with the problem.  But some mechanical tools for
  416. >dealing with the translation would help.  
  417.  
  418. If you don't use "friend" or overloading, you probably don't have much to
  419. convert.  If you do, you're going to need to do it manually, anyway.
  420.  
  421.  
  422. - -- 
  423. Dennis Cohen
  424. Claris Corp.
  425.  ****************************************************
  426. Disclaimer:  Any opinions expressed above are _MINE_!
  427.  
  428. +++++++++++++++++++++++++++
  429.  
  430. From: steve@oceania.com (Steve Dakin)
  431. Organization: Oceania Health Care Systems
  432. Date: Thu, 7 May 92 19:54:44 GMT
  433.  
  434. In article <acfkk0h.nagle@netcom.com> nagle@netcom.com (John Nagle) writes:
  435. >      I'm considering converting some programs from MPW C++ to Objective C,
  436. > primarily to use the better libraries that Think C offers.  Are there
  437. > any tools that will assist with a conversion from MPW C++ to Objective-C?
  438.  
  439. Objective-C only works with MPW 3.2 at the moment.  Stepstone said they were  
  440. interested in getting it to work with THINK C, but I wouldn't hold your breath  
  441. waiting for that.
  442.  
  443. Although I like the THINK environment better, the benefits of programming in  
  444. Objective-C outweigh the disadvantages of MPW (lack of speed, cryptic, to name  
  445. a couple).
  446.  
  447. Steve
  448. - -- 
  449.     Steve Dakin                        Oceania Health Care Systems 
  450.  steve@oceania.com (NeXT mail)         Palo Alto, CA (415) 322-0127
  451.  jester@oceania.com
  452.  
  453. +++++++++++++++++++++++++++
  454.  
  455. From: Monty Solomon <monty%roscom@think.com>
  456. Organization: Proponent
  457. Date: Sat, 9 May 1992 04:35:55 GMT
  458.  
  459. In article <14287@claris.com> drc@claris.com (Dennis Cohen) writes:
  460. > THINK C does not use Objective C, they use Object C -- the Object Pascal
  461. > equivalent in C.  It is (almost) a C++ subset.  Objective C is the language
  462. > developed by Brad Cox and StepStone which is essentially C with embedded
  463. > SmallTalk for OO work.  StepStone has an Objective C preprocessor to the
  464. > MPW C compiler for $99.  It comes with their Software ICPak (component
  465. > library).
  466.  
  467. What is the current status of Objective C for the Macintosh?
  468.  
  469. What libraries does it come with?
  470.  
  471. Does it have any support for MacApp?
  472.  
  473. Any other info?
  474.  
  475. Thanks.
  476. - -- 
  477. # Monty Solomon / PO Box 2486 / Framingham, MA  01701-0405
  478. # monty%roscom@think.com
  479.  
  480. +++++++++++++++++++++++++++
  481.  
  482. From: steve@oceania.com (Steve Dakin)
  483. Date: 12 May 92 19:52:47 GMT
  484. Organization: Oceania Health Care Systems
  485.  
  486. In article <1992May9.043555.3738@proponent.com> Monty Solomon  
  487. <monty%roscom@think.com> writes:
  488. > What is the current status of Objective C for the Macintosh?
  489.  
  490. Shipping.
  491.  
  492. > What libraries does it come with?
  493.  
  494. It comes with Stepstone's ICPak-101 which is a set of 20 classes that support  
  495. basic data structures (e.g. lists, stacks, arrays).
  496.  
  497. > Does it have any support for MacApp?
  498.  
  499. Not that I am aware of.
  500.  
  501. > Any other info?
  502.  
  503. I've been programming the NeXT for over 3 years and am quite pleased that I can  
  504. finally use my favorite language on the Mac.  I have been using Objective-C  
  505. with MPW for over a month now (it was just released...), and am happy to report  
  506. that my only gripe is that it doesn't support "\p" style Pascal string  
  507. constants (you have to put the length byte in yourself).  Outside of that, it  
  508. has proven to be quite useful and has jumped to the top of my list of favorite  
  509. Mac Languages.  I haven't completed a project with it yet, so it may be too  
  510. early to tell - but everything is cruising along so far.
  511.  
  512. I don't know if Stepstone is still offering the $99 price, but if they are and  
  513. you have MPW C 3.2, it's a steal of a deal.
  514.  
  515. Disclaimer: I am not affiliated with Stepstone except as a happy customer.
  516.  
  517. Steve
  518. - -- 
  519.     Steve Dakin                        Oceania Health Care Systems 
  520.  steve@oceania.com (NeXT mail)         Palo Alto, CA (415) 322-0127
  521.  jester@oceania.com
  522.  
  523. +++++++++++++++++++++++++++
  524.  
  525. From: shirley@gothamcity.jsc.nasa.gov (Bill Shirley [CSC])
  526. Date: 18 May 92 15:17:36 GMT
  527. Organization: Software Technology Lab - NASA/Johnson Space Center
  528.  
  529. In article <1992May9.043555.3738@proponent.com>, Monty Solomon <monty%roscom@think.com> writes:
  530. |> In article <14287@claris.com> drc@claris.com (Dennis Cohen) writes:
  531. |> > THINK C does not use Objective C, they use Object C -- the Object Pascal
  532. |> > equivalent in C.  It is (almost) a C++ subset.  Objective C is the language
  533. |> > developed by Brad Cox and StepStone which is essentially C with embedded
  534. |> > SmallTalk for OO work.  StepStone has an Objective C preprocessor to the
  535. |> > MPW C compiler for $99.  It comes with their Software ICPak (component
  536. |> > library).
  537. |> 
  538. |> What is the current status of Objective C for the Macintosh?
  539.  
  540. It is available from
  541.   The Stepstone Corporation
  542.   (203) 426-1875 - (800) BUY-OBJEct voice / (203) 270-0106 fax
  543.   75 Glen Road
  544.   Sandy Hook, CT 06482
  545.  
  546. it works with MPW
  547.  
  548. |> 
  549. |> What libraries does it come with?
  550.  
  551. I'm not sure, but probably ICPak101 - Foundation Class Library
  552.     and ICpak 201 - GUI library is probably available at extra cost
  553.  
  554. |> 
  555. |> Does it have any support for MacApp?
  556.  
  557. Don't know
  558.  
  559. |> Any other info?
  560.  
  561. I can send the comp.lang.objective-c FAQ file if that's the info you want
  562.  
  563. |> 
  564. |> Thanks.
  565. |> -- 
  566. |> # Monty Solomon / PO Box 2486 / Framingham, MA  01701-0405
  567. |> # monty%roscom@think.com
  568.  
  569. - -- 
  570. Bill Shirley
  571. shirley@krakatoa.jsc.nasa.gov
  572.  
  573. +++++++++++++++++++++++++++
  574.  
  575. From: steve@oceania.com (Steve Dakin)
  576. Date: 18 May 92 17:41:43 GMT
  577. Organization: Oceania Health Care Systems
  578.  
  579. In article <1992May18.101736@gothamcity.jsc.nasa.gov>  
  580. shirley@gothamcity.jsc.nasa.gov (Bill Shirley [CSC]) writes:
  581. > |> 
  582. > |> What libraries does it come with?
  583. > I'm not sure, but probably ICPak101 - Foundation Class Library
  584. >     and ICpak 201 - GUI library is probably available at extra cost
  585.  
  586. It DOES come with the ICPak101, but the ICPak201 is not yet available for the  
  587. Mac.  Stepstone is still selling Obj-C for the Mac for $99 (a steal!).
  588.  
  589. Just a happy Objective-C user,
  590.  
  591. Steve
  592.  
  593.  
  594. - -- 
  595.     Steve Dakin                        Oceania Health Care Systems 
  596.  steve@oceania.com (NeXT mail)         Palo Alto, CA (415) 322-0127
  597.  jester@oceania.com
  598.  
  599. +++++++++++++++++++++++++++
  600.  
  601. From: ksand@apple.com (Kent Sandvik)
  602. Date: 19 May 92 02:45:36 GMT
  603. Organization: MacDTS Mongols
  604.  
  605. In article <1992May18.101736@gothamcity.jsc.nasa.gov>,
  606. shirley@gothamcity.jsc.nasa.gov (Bill Shirley [CSC]) writes:
  607. > In article <1992May9.043555.3738@proponent.com>, Monty Solomon > |> Does it
  608. have any support for MacApp?
  609. > Don't know
  610.  
  611. Not according to the manual. I got my copy today from the engineering 
  612. library, and if I have enough time I will stress-test the package for 
  613. a week or so. Lack of an application framework means I have to write
  614. one, sigh.
  615.  
  616. Cheers,
  617. Kent
  618.  
  619. ---------------------------
  620.  
  621. From: swb1_ltd@uhura.cc.rochester.edu (Steve Berkley)
  622. Subject: Reading Sectors from SuperDrive 800K disk, not 720K
  623. Date: 7 May 92 15:08:22 GMT
  624. Organization: University of Rochester - Rochester, New York
  625.  
  626. Thanks to all who provided informative (and some not) possible
  627. solutions for my attempts to get the SuperDrive to read MFM
  628. diskettes from a keyboard sampler (EPS).  Unfortunately, there
  629. are new problems.
  630.  
  631. The .Sony driver knows this is not a GCR diskette, so it attempt
  632. to read the diskette as if it were a 720K MFM (IBM) diskette.
  633. Unfortunately, the diskette is sectored 0-9, not 1-9 as IBM
  634. diskettes, so PBRead calls always skip sector 0.
  635.  
  636. I suspect this would mean the only solution left is in tweaking the
  637. actual driver.  Any ideas?
  638.  
  639. - -Steve B
  640. swb1_ltd@uhura.cc.rochester.edu
  641.  
  642. +++++++++++++++++++++++++++
  643.  
  644. From: stevec@Apple.COM (Steve Christensen)
  645. Date: 19 May 92 01:16:14 GMT
  646. Organization: Apple Computer Inc., Cupertino, CA
  647.  
  648. swb1_ltd@uhura.cc.rochester.edu (Steve Berkley) writes:
  649. >The .Sony driver knows this is not a GCR diskette, so it attempt
  650. >to read the diskette as if it were a 720K MFM (IBM) diskette.
  651. >Unfortunately, the diskette is sectored 0-9, not 1-9 as IBM
  652. >diskettes, so PBRead calls always skip sector 0.
  653.  
  654. >I suspect this would mean the only solution left is in tweaking the
  655. >actual driver.  Any ideas?
  656.  
  657. Yes, I don't suggest you tweak the driver.  The driver itself will only deal
  658. with the four disk formats it knows about.  It doesn't have tables of format
  659. information that it references, and thus that you could change on the fly.
  660.  
  661. Second point: on the IIfx and Quadra 900, the entire floppy system is run by
  662. a separate processor, so you won't have any access to the hardware or to the
  663. code that runs the show.  Also, on the portable Macs, power management stuff
  664. is integrated into the floppy driver, so playing inside the driver could
  665. cause problems elsewhere.
  666.  
  667. Third point: Apple will, no doubt, get around to changing their floppy
  668. hardware to improve performace, support new formats, etc.  When this happens,
  669. any inside tweaks will no longer work.
  670.  
  671. Of course (since I missed the original post), if you just need to get this
  672. working on your system at home, compatibility is not quite the issue.  If
  673. so, ignore my ranting...
  674.  
  675. steve
  676.  
  677. - -- 
  678. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  679.   Steve Christensen            Never hit a man with glasses.
  680.   stevec@apple.com            Hit him with a baseball bat.
  681.  
  682. ---------------------------
  683.  
  684. From: blevine@pdq.East.Sun.COM (Brian Levine - Sun BOS Software)
  685. Subject: Information on Bento?
  686. Date: 29 Apr 92 17:54:12 GMT
  687. Organization: Sun Microsystems, Inc.
  688.  
  689.  
  690. Hi all,
  691.  
  692. Can someone tell me where I can find more info on Bento, Apple's proposal for
  693. a compound document storage format?
  694.  
  695. Thanks!
  696.  
  697. Brian Levine 
  698.  
  699. (blevine@east.sun.com)
  700. SunSoft, Inc.
  701. 2 Federal Street
  702. Billerica, MA 01821
  703.  
  704. +++++++++++++++++++++++++++
  705.  
  706. From: hpoppe@ncar.ucar.edu (Herb Poppe)
  707. Date: 30 Apr 92 14:49:47 GMT
  708. Organization: National Center for Atmospheric Research
  709.  
  710. In article <tmns4INNjoc@seven-up.East.Sun.COM> blevine@pdq.East.Sun.COM 
  711. (Brian Levine - Sun BOS Software) writes:
  712.  
  713. > Can someone tell me where I can find more info on Bento, Apple's 
  714. proposal for
  715. > a compound document storage format?
  716.  
  717. There will be a session entitled "BENTO: The Industrial Strength Document 
  718. Model" on Friday, May 15 from 9:30 to 11:30 at Apple's World-Wide 
  719. Developer's Conference in San Jose, CA.
  720.  
  721. Herb Poppe                 National Center for Atmospheric Research (NCAR)
  722. hpoppe@ncar.ucar.edu       1850 Table Mesa Dr.
  723. (303) 497-1296             Boulder, CO  80303
  724.  
  725. +++++++++++++++++++++++++++
  726.  
  727. From: miyazaki@phoenix.Princeton.EDU (Takeshi Miyazaki)
  728. Date: 30 Apr 92 22:17:38 GMT
  729. Organization: Princeton University
  730.  
  731.  
  732. I hope Apple use "Obento" instead of "Bento", which is more polite :)
  733.  
  734. - -- 
  735. Takeshi Miyazaki (miyazaki@ee.princeton.edu)
  736.  
  737. +++++++++++++++++++++++++++
  738.  
  739. From: jpugh@apple.com (Jon Pugh)
  740. Date: 16 May 92 18:06:48 GMT
  741. Organization: Apple Computer, Inc.
  742.  
  743. In article <tmns4INNjoc@seven-up.East.Sun.COM>, blevine@pdq.East.Sun.COM (Brian Levine - Sun BOS Software) writes:
  744. > Can someone tell me where I can find more info on Bento, Apple's proposal for
  745. > a compound document storage format?
  746.  
  747. You should probably email Richard Moore (MOORE.RK@Applelink.Apple.Com) and
  748. ask for info.
  749.  
  750. Jon
  751.  
  752. ---------------------------
  753.  
  754. From: nagle@netcom.com (John Nagle)
  755. Subject: Converting from C++ to Think C
  756. Date: Thu, 30 Apr 92 07:08:58 GMT
  757. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  758.  
  759.       I'm considering converting a program from MPW C++ to Think C.
  760. How hard a job is this, and are there any mechanical aids for so doing?
  761.  
  762.                     John Nagle
  763.  
  764. (Yes, I know this is a downward conversion.)
  765.  
  766. +++++++++++++++++++++++++++
  767.  
  768. From: ksand@apple.com (Kent Sandvik)
  769. Date: 16 May 92 23:23:41 GMT
  770. Organization: MacDTS Mongols
  771.  
  772. In article <fs+kwq+.nagle@netcom.com>, nagle@netcom.com (John Nagle) writes:
  773. >       I'm considering converting a program from MPW C++ to Think C.
  774. > How hard a job is this, and are there any mechanical aids for so doing?
  775.  
  776. No tools that I know about, the most ugly thing would be to convert
  777. nice constructors to simple ones, but then again if the code is MacApp
  778. you don't have this problem. Another silly limitation is the lack of 
  779. any more complex functionality inside a constructor (like creating
  780. other objects). I guess downgrading is fine, but sooner or later you
  781. need to upgrade again (grin).
  782.  
  783. Cheers,
  784. Kent
  785. Dynamic Language Evangelist - "I'm on a mission from God" (Blues Brothers
  786. for you non-American culture-fans).
  787.  
  788. ---------------------------
  789.  
  790. From: talcott@grape.ucsb.edu (Talcott)
  791. Subject: Problems Updating MENU Resource
  792. Date: 14 May 92 15:52:26 GMT
  793. Organization: University of California, Santa Barbara
  794.  
  795. I'm having some problems saving changes made to a MENU resource at run-time.
  796. Essentially, I'm allowing the user to add and delete items from a pop-up menu
  797. and I want to save those changes to disk when the program quits.
  798.  
  799. The way I was doing this was by calling ChangedResource() on the MenuHandle
  800. for the pop-up menu.  The problem with this was that when I call GetMenu() the
  801. next time the program runs, the menu is not displayed.  If I replace the MENU
  802. resource, the program will work again.  It appears that the MENU resource is
  803. getting corrupted somehow.
  804.  
  805. I am using THINK C 5.0.1.  Any help would be GREATLY appreciated.  Please reply
  806. via e-mail, unless you believe that other netters could benefit from your
  807. response.  Thanks in advance.
  808.  
  809. Adam R. Talcott                         |  "Who's more foolish: the fool or
  810. talcott@grape.ucsb.edu                  |  the fool who follows him?"
  811. Graduate Student (Computer Engineering) |             -- Ben "Obi-Wan" Kenobi
  812. University of California, Santa Barbara |               "Star Wars"
  813.  
  814. +++++++++++++++++++++++++++
  815.  
  816. From: dorner@pequod.cso.uiuc.edu (Steve Dorner)
  817. Date: 15 May 92 17:33:38 GMT
  818. Organization: University of Illinois at Urbana-Champaign
  819.  
  820. talcott@grape.ucsb.edu (Talcott) writes:
  821. >The way I was doing this was by calling ChangedResource() on the MenuHandle
  822. >for the pop-up menu.  The problem with this was that when I call GetMenu() the
  823. >next time the program runs, the menu is not displayed.
  824.  
  825. The menu manager puts something in the menuProc field.  Assuming you have
  826. a MenuHandle in mh, you want something like:
  827.  
  828.     Handle savedProcId = (*mh)->menuProc;
  829.     (*mh)->menuProc = nil;
  830.     ChangedResource(mh);
  831.     WriteResource(mh);
  832.     (*mh)->menuProc = savedProcId;
  833. - -- 
  834. Steve Dorner, U of Illinois Computing Services Office
  835. Internet: s-dorner@uiuc.edu  UUCP: uunet!uiucuxc!uiuc.edu!s-dorner
  836.  
  837. +++++++++++++++++++++++++++
  838.  
  839. From: keith@taligent.com (Keith Rollin)
  840. Date: 16 May 92 22:51:47 GMT
  841. Organization: Taligent
  842.  
  843. In article <4643@ucsbcsl.ucsb.edu>, talcott@grape.ucsb.edu (Talcott) writes:
  844. > I'm having some problems saving changes made to a MENU resource at run-time.
  845. > Essentially, I'm allowing the user to add and delete items from a pop-up menu
  846. > and I want to save those changes to disk when the program quits.
  847. > The way I was doing this was by calling ChangedResource() on the MenuHandle
  848. > for the pop-up menu.  The problem with this was that when I call GetMenu() the
  849. > next time the program runs, the menu is not displayed.  If I replace the MENU
  850. > resource, the program will work again.  It appears that the MENU resource is
  851. > getting corrupted somehow.
  852. > I am using THINK C 5.0.1.  Any help would be GREATLY appreciated.  Please
  853. reply
  854. > via e-mail, unless you believe that other netters could benefit from your
  855. > response.  Thanks in advance.
  856.  
  857. >From page I-364 of Inside Mac:
  858.  
  859. "The four bytes beginning with the resource ID of the menu definition procedure
  860. serve as a placeholder for the handle to the procedure: When GetMenu is called
  861. to read the menu from the resource file, it also reads in the menu definition
  862. procedure if necessary, and replaces these four bytes with a handle to the
  863. procedure."
  864.  
  865. When you save out the MENU resource, you are writing out a version that has a
  866. handle to the MDEF, instead of the resource ID of the MDEF, which is what you
  867. want. I guess it would go like this:
  868.  
  869. mdefHandle = (**myMenu).menuProc;
  870. (**myMenu).menuProc = (Handle) (mdefID << 16);  // mdefID will probably be zero
  871. ChangedResource(myMenu);
  872. WriteResource(myMenu);
  873. (**myMenu).menuProc = mdefHandle;
  874.  
  875. - --
  876. Keith Rollin
  877. Phantom Programmer
  878. Taligent, Inc.
  879.  
  880. ---------------------------
  881.  
  882. From: Stephen Kohlmeyer
  883. Subject: Stereo sound on the Mac?
  884. Organization: University of Minnesota
  885. Date: Fri, 15 May 1992 00:18:14 GMT
  886.  
  887. Hello News readers,
  888.  
  889. Is it possible to program a Mac II (or better) with stereo sound output?
  890. If it is possible, then I would like to play a sound to either 
  891. the left or right channel as I need.  How can I direct the sound to 
  892. one channel or another?
  893.  
  894. Thanks in advance.
  895. Steve Kohlmeyer
  896. U of MN
  897. kohlmeyer@cs.umn.edu
  898.  
  899.  
  900.  
  901. +++++++++++++++++++++++++++
  902.  
  903. From: REEKES@applelink.apple.com (Jim Reekes)
  904. Date: 18 May 92 19:12:09 GMT
  905. Organization: Apple Computer, Inc.
  906.  
  907. In article <1992May15.001814.9422@news2.cis.umn.edu>, Stephen Kohlmeyer writes:
  908. > Hello News readers,
  909. > Is it possible to program a Mac II (or better) with stereo sound output?
  910.  
  911. Yes, but no programming is necessary.  Just call SndPlay on a snd resource
  912. that contains a stereo sound header, or call bufferCmd yourself pointing
  913. at this sound header.
  914.  
  915. > If it is possible, then I would like to play a sound to either 
  916. > the left or right channel as I need.  How can I direct the sound to 
  917. > one channel or another?
  918.  
  919. No can do with the current version of the Sound Manager.  The stereo
  920. buffer will contain the left/right information.  If the sound is in the
  921. left channel of the sound header then it plays in the left speaker.  You
  922. cannot "pan" a sound within the stereo field.  It's a feature we're adding
  923. to the next version of the Sound Manager.
  924.  
  925. - -----------------------------------------------------------------------
  926. Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
  927.                              |          Sound Manager Expert
  928. Apple Computer, Inc.         | "All opinions expressed are mine, and do
  929. 20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
  930. Cupertino, CA 95014          |       employer, Apple Computer Inc."
  931.  
  932. +++++++++++++++++++++++++++
  933.  
  934. From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
  935. Organization: Kalamazoo College
  936. Date: Wed, 20 May 1992 04:34:54 GMT
  937.  
  938. REEKES@applelink.apple.com (Jim Reekes) writes:
  939. >Stephen Kohlmeyer writes:
  940. >> 
  941. >> I would like to play a sound to either 
  942. >> the left or right channel as I need.  How can I direct the sound to 
  943. >> one channel or another?
  944. >
  945. >No can do with the current version of the Sound Manager.
  946.  
  947. Jim, can't you open two channels, one with initChanLeft and one with
  948. initChanRight, and send bufferCmds to either or both?
  949.  
  950. >You
  951. >cannot "pan" a sound within the stereo field.  It's a feature we're adding
  952. >to the next version of the Sound Manager.
  953.  
  954. Ooooooh, you shouldn't tease us like this!  :-)
  955. - -- 
  956.  Jamie McCarthy     Internet: k044477@kzoo.edu     AppleLink: j.mccarthy
  957.  Civil Rights:  1964 - 1992.  R.I.P.
  958.  
  959. ---------------------------
  960.  
  961. End of C.S.M.P. Digest
  962. **********************
  963.